package com.hfi.command.demo03;

/**
 * @author ChangLiang
 * @date 2020/4/26
 */
public class BakeMuttonCommand extends Command {

    public BakeMuttonCommand() {
    }

    public BakeMuttonCommand(Barbecuer receiver) {
        super(receiver);
    }

    @Override
    public void executeCommand() {
        receiver.BakeMutton();
    }

    @Override
    public CancelResult cancelCommand() {
        return new CancelResult(false, "已经在烤了，不能取消烤羊肉串");
    }

    @Override
    public String toString() {
        return "烤羊肉串";
    }
}

